package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Carinfo;
import cn.wolfcode.crm.domain.Guaranteebill;
import cn.wolfcode.crm.query.GuaranteebillQueryObject;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface IGuaranteebillService {
    int deleteByPrimaryKey(Long id);

    int insert(Guaranteebill record);

    Guaranteebill selectByPrimaryKey(Long id);

    List<Guaranteebill> selectAll();

    int updateByPrimaryKey(Guaranteebill record);
    //暂存
    void saveBill(Map<String,Object> billMap);
    //根据状态查询
    List<Guaranteebill> selectByState(GuaranteebillQueryObject qo);

    //根据历史记录分页
    PageResult queryHistory(QueryObject qo);

    void audit(Long id);
    //审核通过
    void auidSuccess(Long id);

    void rejuest(Long id);
    //保存number和商品的信息
    void saveNumberAndProductInfo(String number, Long id);
    //退回修改
    void checkClient(Long id, String message);

    String queryAdvice(Long id);

    Carinfo queryCarInfo(Integer id);
}
